package com.isoftstone.merchant.dao.mprojecttype;

import com.isoftstone.common.Page;
import com.isoftstone.merchant.entity.mprojecttype.MProjectType;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface MProjectTypeMapper {
    int deleteByPrimaryKey(Long projectTypeId);

    int insert(MProjectType record);

    int insertSelective(MProjectType record);

    MProjectType selectByPrimaryKey(Long projectTypeId);

    int updateByPrimaryKeySelective(MProjectType record);

    int updateByPrimaryKey(MProjectType record);
    //
    List<MProjectType> selectMProjectTypelistPage(Page page);

    List<MProjectType> checkName(Map<String, Object> map);

    Integer selectCount(@Param("mProjectId") String mProjectId);
    //查询费用类型列表
    List<MProjectType> getTypeList(Map<String, Object> map);//////

    //查询所有项目类型下拉菜单
    List<MProjectType> selectMProjectTypeList();

    List<MProjectType> getProjectTypeNameByCropId(@Param("corpId") String corpId)throws Exception;
}